package admin

import (
	auto "beergo/app/com/auto/controller"
	"beergo/app/com/conf"
	"github.com/beego/beego/v2/server/web"
)

type QuestionAdminController struct {
	auto.QuestionController
}

func init() {
	web.Router(conf.UrlPrefixAdmin + "/Question/:id", 		&QuestionAdminController{}, "*:GetAction")
	web.Router(conf.UrlPrefixAdmin + "/Question/info", 		&QuestionAdminController{}, "*:InfoAction")
	web.Router(conf.UrlPrefixAdmin + "/Question/scan", 		&QuestionAdminController{}, "*:ScanAction")
	web.Router(conf.UrlPrefixAdmin + "/Question/list", 	    &QuestionAdminController{}, "*:ListAction")
	web.Router(conf.UrlPrefixAdmin + "/Question/update", 	&QuestionAdminController{}, "*:UpdateAction")
	web.Router(conf.UrlPrefixAdmin + "/Question/create", 	&QuestionAdminController{}, "*:CreateAction")
	web.Router(conf.UrlPrefixAdmin + "/Question/copy", 	    &QuestionAdminController{}, "*:CopyAction")
	web.Router(conf.UrlPrefixAdmin + "/Question/edit", 	    &QuestionAdminController{}, "*:EditAction")
	web.Router(conf.UrlPrefixAdmin + "/Question/delete", 	&QuestionAdminController{}, "*:DeleteAction")
	web.Router(conf.UrlPrefixAdmin + "/Question/:id/:field", &QuestionAdminController{}, "*:SonsAction")
	web.Router(conf.UrlPrefixAdmin + "/Question/choice", &QuestionAdminController{}, "*:ChoiceAction")
	web.Router(conf.UrlPrefixAdmin + "/Question/category", &QuestionAdminController{}, "*:CategoryAction")
}
//func (this *QuestionAdminController) Prepare() {}
//func (this *QuestionAdminController) ListAction() {}
//func (this *QuestionAdminController) GetAction() {}
//func (this *QuestionAdminController) InfoAction() {}
//func (this *QuestionAdminController) ScanAction() {}
//func (this *QuestionAdminController) CreateAction() {}
//func (this *QuestionAdminController) UpdateAction() {}
//func (this *QuestionAdminController) CopyAction() {}
//func (this *QuestionAdminController) DeleteAction() {}
//func (this *QuestionAdminController) EditAction() {}
//func (this *QuestionAdminController) SonsAction() {}
//func (this *QuestionAdminController) ChoiceAction() {}
//func (this *QuestionAdminController) CategoryAction() {}
